<?php 
header("Content-type: text/html; charset=utf-8");
require_once('inc_jiaju.php');
connect();
$ctf_id=$_GET['id'];
$sql = 'select * from jiaju where ctf_id='.$ctf_id.' ';
$jiajiu = fetch_array($sql);
//var_dump($sql);
echo '<table align="center" border="1">';
echo '<caption><h3>家具信息</h3></caption>';
foreach ($jiajiu as $one) {
  echo '<tr><th>名称:</th><td>'.$one['ctf_name'].'</td></tr>';
  echo '<tr><th align="center">图片：</th><td><img src='.$one['ctf_jiajulink'].' width=100 height=90 alt="无图片"></td></tr>';
  echo '<tr><th>品牌:</th><td>'.$one['ctf_brand'].'</td></tr>';
  echo '<tr><th>简介:</th><td>'.$one['ctf_intro'].'</td></tr>';
}

 ?>